#1. 直角在左下角
size = int(input("请输入一个数字："))
i = 0
while i <= size:
    print("*" * i)
    i += 1

print("-----------")
#2.直角在左上角
while i >= 1:
    print("*" * i)
    i -= 1
print("-----------")
#3.直角在右下角
while i <= size:
    print(" " * (size - i), "*" * i)
    i += 1
print("-----------")
#4.直角在右上角
while i >1:
    print(" " * (size+1 - i), "*" * (i-1))
    i -= 1